<include file="Public/min-header"/>
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>

<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content" style="padding:0px 15px;">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">           
                <div class="panel-body ">   
                   	<ul class="nav nav-tabs">
                        <foreach name="group_list" item="vo" key="k">
                     		<li <if condition="$k eq 'basic'">class="active"</if>><a href="javascript:void(0)" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                     	</foreach>                        
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="handlepost" action="{:U('System/handle')}">                    
                        <!--通用信息-->
                    <div class="tab-content" style="padding:20px 0px;">                 	  
                        <div class="tab-pane active" id="tab_tongyong">                           
                            <table class="table table-bordered">
                                <tbody> 
                                <tr>
                                    <td>会员注册赠送积分：</td>
                                    <td><input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="reg_integral" value="{$config.reg_integral}" ></td>
                               		<td></td>
                                </tr>
                                <tr><td>微信视频号id：</td>
                                    <td><input  class="form-control" type="text" name="finder_user"  value="{$config.finder_user}"></td>
                                    <td class="text-warning">
                                        <span >获取视频号 ID 的需要登录视频号助手，在首页可以查看自己的视频号ID。</span><br/>
                                        <a onmouseover="layer.tips('<img src=/Public/images/feedId.png>',this,{tips: [1, '#fff'],time: 10000});" onmouseout="layer.closeAll();" href="https://channels.weixin.qq.com/" target="_blank" style="color: #ff9800;">点击获取视频号id</a><br/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>电话：</td>
                                    <td>
                                        <input type="text"   title="只能输入数字"  class="input-sm" name="wxtel" value="{$config.wxtel}" >
                                    </td>
                                    <td>电话</td>
                                </tr>
                                <tr>
                                    <td>不产生积分日期：</td>
                                    <td><input type="text"  title="只能输入数字"   class="form-control" name="no_integral_date" value="{$config.no_integral_date}" ></td>
                                    <td>示例2024-05-01~2024-06-01</td>
                                </tr>
                                <tr>
                                    <td>商家过期前提示天数：</td>
                                    <td><input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="merchant_expiration" value="{$config.merchant_expiration}" ></td>
                                    <td>0为不开启</td>
                                </tr>
                                <tr>
                                    <td>提示内容：</td>
                                    <td><input type="text" title="提示内容"  class="form-control" style="width: 500px;" name="merchant_content" value="{$config.merchant_content}" ></td>
                                    <td>$time 表示剩余天数：过期时间还有$time天</td>
                                </tr>
                                <tr>
                                    <td>完全过期提示内容：</td>
                                    <td><input type="text" title="提示内容"  class="form-control" style="width: 500px;" name="merchant_content_end" value="{$config.merchant_content_end}" ></td>
                                    <td>$time 表示剩余天数：您已经过期$time天</td>
                                </tr>
                              	<tr>
                                    <td>附件上传大小：</td>
                                    <td>                         		
                                        <select class="input-sm" name="file_size">
                                            <option value="1" <if condition="$config[file_size] eq 1">selected="selected"</if>>1M</option>
                                            <option value="2" <if condition="$config[file_size] eq 2">selected="selected"</if>>2M</option>
                                            <option value="3" <if condition="$config[file_size] eq 3">selected="selected"</if>>3M</option>
                                            <option value="5" <if condition="$config[file_size] eq 4">selected="selected"</if>>5M</option>
                                            <option value="10"<if condition="$config[file_size] eq 10">selected="selected"</if>>10M</option>
                                            <option value="50"<if condition="$config[file_size] eq 50">selected="selected"</if>>50M</option>
                                            <option value="100"<if condition="$config[file_size] eq 100">selected="selected"</if>>100M</option>
                                        </select>
                                    </td>
                                    <td></td>
                                </tr>
                                
                                <tr>
                                    <td>默认库存：</td>
                                    <td><input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="default_storage" value="{$config.default_storage}" ></td>
                                	<td></td>
                                </tr>

                                <tr>
                                    <td>快线禁止入库时间区间：</td>
                                    <td><input type="text"  title="快线禁止出库时间区间"  class="input-sm" name="fast_ruku_time" value="{$config.fast_ruku_time}" ></td>
                                    <td>示例12:00-13:00</td>
                                </tr>
                                <tr>
                                    <td>商家截止时间选择：</td>
                                    <td>
                                    <input type="text" title="填写时间"  class="input-sm" name="seller_slow_time" value="{$config.seller_slow_time}" >
                                    <input type="text" title="填写时间"  class="input-sm" name="seller_slow_time2" value="{$config.seller_slow_time2}" ></br>
                                    <input type="text" title="填写时间"  class="input-sm" name="seller_slow_time3" value="{$config.seller_slow_time3}" >
                                    <input type="text" title="填写时间"  class="input-sm" name="seller_slow_time4" value="{$config.seller_slow_time4}" ></td>
                                    <td>时间设置半点或者整点</td>
                                </tr>
                                <tr>
                                    <td>慢线禁止入库时间区间：</td>
                                    <td><input type="text"  title="慢线禁止出库时间区间"  class="input-sm" name="slow_ruku_time" value="{$config.slow_ruku_time}" ></td>
                                    <td>示例19:30-24:00</td>
                                </tr>
                                <tr>
                                    <td>订单下单时间超过不允许扫码：</td>
                                    <td><input type="text"  title="订单下单时间超过不允许扫码"  class="input-sm" name="not_ruku_time" value="{$config.not_ruku_time}" ></td>
                                    <td>示例17:30</td>
                                </tr>
                                
                                <tr>
                                    <td>库存预警数：</td>
                                    <td><input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="warning_storage" value="{$config.warning_storage}" ></td>
                                	<td>当商品数量少于X件时，会在系统后台首页<库存预警>显示</td>
                                </tr>
								<tr>
									<td style="color: red;">默认平台扣点：</td>
									<td><input type="number" class="input-sm" name="points" value="{$config.points}">%</td>
									<td>商家发布产品默认扣点%</td>
								</tr>
								<tr style="color:red;">
                                    <td>系统开启关闭：</td>
                                    <td>关闭<input type="radio" class="" name="system_open" value="0" <if condition="$config[system_open] eq 0"> checked="checked"</if>>&nbsp;&nbsp;&nbsp;
                                        开启<input type="radio" class="" name="system_open" value="1" <if condition="$config[system_open] eq 1"> checked="checked"</if>></td>
                                    <td>系统开启关闭</td>
                                </tr>
                                <tr>
                                    <td>系统关闭提示文字：</td>
                                    <td><input type="text" title="提示内容"  class="form-control" style="width: 500px;" name="system_content" value="{$config.system_content}" ></td>
                                    <td></td>
                                </tr>
                                <tr style="color:red;">
                                    <td>开启在线支付：</td>
                                    <td>否<input type="radio" class="" name="is_pays" value="0" <if condition="$config[is_pays] eq 0"> checked="checked"</if>>&nbsp;&nbsp;&nbsp;
                                        是<input type="radio" class="" name="is_pays" value="1" <if condition="$config[is_pays] eq 1"> checked="checked"</if>></td>
                                    <td>是否开启在线支付</td>
                                </tr>
<!--                                <tr>
                                	<td>发票税率：</td>
                                	<td><input type="number" class="input-sm" name="tax">%</td>
                                	<td>当买家需要发票的时候就要增加<商品金额>*<税率>的费用</td>
                                </tr> -->
                                <tr>
                                    <td>首页分类下显示的商品数：</td>
                                    <td><input type="number"  pattern="^\d{1,}$" title="只能输入数字"  class="input-sm" name="show_number" value="{$config.show_number}" ></td>
                                    <td>首页分类下显示的商品数量</td>
                                </tr>
                                <!--                                         
                            	<tr>
                                    <td>是否开启订单提醒：</td>
                                    <td >
                                       	 是<input type="radio" class="" name="is_remind" value="0" <if condition="$config[is_remind] eq 0"> checked="checked"</if>>
                                       	 否<input type="radio" class="" name="is_remind" value="1" <if condition="$config[is_remind] eq 1"> checked="checked"</if>>                               
                                    </td>
                                	<td></td>
                                </tr>
                                <tr>
                                	<td>发货后订单自动完成时间：</td>
                                	<td><input type="number" class="input-sm" name="order_finish_time">天</td>
                                	<td>发货后的X天，会自动变为完成状态</td>
                                </tr> 
                                <tr>
                                	<td>未付款订单自动取消时间：</td>
                                	<td><input type="number" class="input-sm" name="order_cancel_time">天</td>
                                	<td>未付款订单生成X天，会自动被取消掉</td>
                                </tr>
                                -->
                                <tr>
                                	<td>首页热门搜索词：</td>
                                	<td colspan="2"><input type="text" class="form-control" name="hot_keywords" value="{$config.hot_keywords}">
                                		<p class="text-warning">多个热门搜索关键词请用竖线|分开，如(手机|电脑)</p>
                                	</td>
                                </tr>
								<tr style="color: red;">
                                    <td>是否开启pda收款：</td>
                                    <td >
                                       	 <label>开启<input type="radio" class="" name="pda_open" value="1" <if condition="$config[pda_open] eq 1"> checked="checked"</if>></label>
                                       	 <label>关闭<input type="radio" class="" name="pda_open" value="0" <if condition="$config[pda_open] eq 0"> checked="checked"</if>></label>
                                    </td>
                                	<td></td>
                                </tr>
                            	<tr>
                                    <td>首页店铺街是否显示：</td>
                                    <td >
                                       	 否<input type="radio" class="" name="app_test" value="0" <if condition="$config[app_test] eq 0"> checked="checked"</if>>
                                       	 是<input type="radio" class="" name="app_test" value="1" <if condition="$config[app_test] eq 1"> checked="checked"</if>>                               
                                    </td>
                                	<td></td>
                                </tr>
                            	<tr>
                                    <td>首页优惠券是否显示：</td>
                                    <td>
                                       	 否<input type="radio" class="" name="is_show_bonus" value="0" <if condition="$config[is_show_bonus] eq 0"> checked="checked"</if>>
                                       	 是<input type="radio" class="" name="is_show_bonus" value="1" <if condition="$config[is_show_bonus] eq 1"> checked="checked"</if>>                               
                                    </td>
                                	<td></td>
                                </tr>
                            	<tr>
                                    <td>优惠券是否自动选择：</td>
                                    <td>
                                       	 否<input type="radio" class="" name="is_show_coupin" value="0" <if condition="$config[is_show_coupin] eq 0"> checked="checked"</if>>
                                       	 是<input type="radio" class="" name="is_show_coupin" value="1" <if condition="$config[is_show_coupin] eq 1"> checked="checked"</if>>                               
                                    </td>
                                	<td></td>
                                </tr>
                                <tr>
                                    <td>最少提现额度：</td>
                                    <td >
                                        <input type="text" class="form-control" name="min" id="distribut_min" value="{$config.min}"onpaste="this.value=this.value.replace(/[^\d]/g,'')" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" >
                                    </td>
                                    <td class="col-sm-7"></td>
                                </tr>
								<tr>
                                    <td>附近商家显示距离：</td>
                                    <td >
                                        <input type="text" class="form-control" name="distance" value="{$config.distance}"onpaste="this.value=this.value.replace(/[^\d]/g,'')" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" >
                                    </td>
                                    <td class="col-sm-7">单位:千米</td>
                                </tr>
                            	<tr>
                                    <td>分类页风格</td>
                                    <td>
                                       	 无产品<input type="radio" class="" name="category_type" value="0" <if condition="$config[category_type] eq 0"> checked="checked"</if>>
                                       	 有产品<input type="radio" class="" name="category_type" value="1" <if condition="$config[category_type] eq 1"> checked="checked"</if>>                               
                                    </td>
                                	<td></td>
                                </tr>

                                <tr>
                                    <td>商品购买须知</td>
                                    <td>
                                        <input type="text" id="goodsNotice" class="input-sm" name="goodsNotice" value="{$config.goodsNotice}" >
                                        <input type="button" class="button" onClick="GetUploadify(1,'goodsNotice','logo','')"  value="上传商品须知"/>
                                    </td>
                                    <td></td>
                                </tr>
                                </tbody> 
                                <tfoot>
                                	<tr>
                                	<td><input type="hidden" name="inc_type" value="{$inc_type}"></td>
                                	<td></td>
                                	<td class="text-right"><input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存"></td>
                                	</tr>
                                </tfoot>                               
                                </table>
                        </div>                           
                    </div>              
			    	</form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>

<script>
function adsubmit(){
	$('#handlepost').submit();
}

$(document).ready(function(){
	get_province();
});

function goset(obj){
	window.location.href = $(obj).attr('data-url');
}
</script>
</body>
</html>